
cc.Class({
    extends: cc.Component,

    properties: {
		menuButtons: cc.Node,

		optionScreen: cc.Node,
    },

    // LIFE-CYCLE CALLBACKS:

	onBtnClick(event, btnID) {
		let ID = parseInt(btnID);
		if (ID === 0) {
			cc.director.loadScene('Main');
		}
		else if (ID === 1) {
			this.optionScreen.active = true;
		}
		else if (ID === 2) {
			cc.game.end();
		}
	},
    // onLoad () {},

    start (){
		console.log(this.menuButtons);
    },

    // update (dt) {},
});
